﻿{% extends "admin/base_site.html" %}
{% load i18n %}
{% load dummy_extras %}

{% block extrastyle %}
    {{ block.super }}
    <link rel="stylesheet" type="text/css" href="{{ admin_media_prefix }}css/forms.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/aristocles.css" />
{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
    <a href="{{ back|default:"" }}../../../">{% trans "Home" %}</a> &rsaquo;
    <a href="{{ back|default:"" }}../../">{{ app_label|appname }}</a> &rsaquo;
    <a href="{{ back|default:"" }}../">{{ model_name }}</a> &rsaquo;
    {{ title }}
</div>
{% endblock %}

{% block content %}
    <div id="content-main">
        <form action="." method="post" id="welfarerequest_form">{% csrf_token %}
            <div>
                {% if form.errors %}
                    <p class="errornote">Пожалуйста, исправьте ошибку ниже.</p>
                    {{ form.non_field_errors }}
                {% endif %}
                <fieldset class="module {% if form.groups.errors %}errors{% endif %} aligned">
                    {% for field in form %}
                        {{ field.errors }}
                        <div class="form-row{% if field.errors %} errors{% endif %}">
                            <div>
                                {{ field.label_tag }}
                                {{ field }}
                            </div>
                        </div>
                    {% endfor %}
                </fieldset>
                <div>
                    <input type="submit" value="Послать заявление" class="default" name="send"/>
                </div>
            </div>
        </form>
    </div>
{% endblock %}
